﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SecurityInformation
{
    public partial class f_Main : Form
    {
        public f_Main()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            maHoa.Playfair a = new maHoa.Playfair();
            MessageBox.Show(a.encryption("ZICVTWQNGRZGVTWAVZHCQYGLMGJ", "deceptive").ToString());
            //this.Hide();
            //f_Chapter2 f = new f_Chapter2();
            //f.ShowDialog();
            //this.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {

        }

        private void button6_Click(object sender, EventArgs e)
        {

        }

        private void button9_Click(object sender, EventArgs e)
        {

        }

        private void button8_Click(object sender, EventArgs e)
        {

        }

        private void button7_Click(object sender, EventArgs e)
        {

        }

        private void button4_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void exists(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có muốn thoát khỏi ứng dụng", "Yêu cầu xác nhận", MessageBoxButtons.YesNo) ==DialogResult.Yes)
            {
                this.Dispose();
                this.Close();
            }
        }

        private void formClosing(object sender, FormClosingEventArgs e)
        {

            if (MessageBox.Show("Bạn có muốn thoát khỏi ứng dụng", "Yêu cầu xác nhận", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                this.Dispose();
                this.Close();
            }
            else
                e.Cancel = true;
        }
    }
}
